#ifndef NOTEPAD_H
#define NOTEPAD_H

#include <QMainWindow>
#include<QFileDialog>
#include<QMessageBox>
#include<QKeyEvent>
#include<QMouseEvent>

#include<widget.h>

namespace Ui {
class Notepad;
}

class Notepad : public QMainWindow
{
    Q_OBJECT

public:
    explicit Notepad(QWidget *parent = nullptr);
    ~Notepad();
    void keyPressEvent(QKeyEvent *k);
    void mousePressEvent(QMouseEvent *m);
private slots:
    void newActionSlot();
    void openActionSlot();
    void saveActionSlot();
    void backActionSlot();
    void helpActionSlot();



private:
    Ui::Notepad *ui;
};

#endif // NOTEPAD_H
